home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softdisk Supreme
/
Softdisk Supreme.iso
/
pc
/
DSK Files
/
0-49
/
SD006b.dsk
/
REPLACE WORDS.bas
< prev
next >
Wrap
BASIC Source File
|
2003-06-12
|
1KB
|
41 lines
1 HOME : VTAB 10
10 D$ = "<CTRL-D>"
14 DIM WD(8),DA(8)
15 INPUT "WHICH FILE ";F$
16 IF F$ = "LT5" THEN BY = 15:LT = 4: GOTO 20
17 IF F$ = "LT6" THEN BY = 18:LT = 5: GOTO 20
18 IF F$ = "LT7" THEN BY = 21:LT = 6: GOTO 20
19 IF F$ = "LT8" THEN BY = 24:LT = 7
20 INPUT "WHICH RECORD TO CHANGE ";RE
21 PRINT "DO YOU WISH TO CHANGE THE FOLLOWING WORD"
22 PRINT D$;"OPEN ";F$;",L";BY
24 GOSUB 1000: PRINT
25 PRINT D$;"CLOSE"
26 PRINT "(Y/N)?";: GET A$: PRINT A$: IF A$ = "Y" THEN 29
28 GOTO 120
29 PRINT : PRINT "ENTER NEW WORD"
30 FOR I = 0 TO LT
40 GET A$: PRINT A$;: IF A$ <"A" OR A$ >"Z" THEN 40
42 WD(I) = ASC(A$) - ASC("A") +11
50 NEXT I
51 PRINT
60 PRINT D$;"OPEN ";F$;",L";BY
65 GOSUB 1000
70 PRINT D$;"WRITE ";F$;",R";RE
80 FOR I = 0 TO LT
90 PRINT WD(I)
100 NEXT I
110 PRINT D$;"CLOSE"
120 PRINT "DO YOU WISH TO CONTINUE(Y/N)?";: GET F$: PRINT F$
130 IF F$ = "Y" THEN GOTO 15
131 IF F$ < >"N" THEN 120
140 END
1000 PRINT D$;"READ ";F$;",R";RE
1010 FOR I = 0 TO LT
1020 INPUT DA(I)
1030 NEXT I
1040 FOR I = 0 TO LT
1050 PRINT CHR$(DA(I) -11 + ASC("A"));
1060 NEXT I
1070 PRINT " "
1080 RETURN